<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>新增页面</title>
<link href="../css/main.css" rel="stylesheet" type="text/css" />
<link rel="stylesheet" href="../jlib/text/jtext.css" type="text/css" />
<link rel="stylesheet" href="../jlib/forms/jtip.css" type="text/css" />
<script src="../js/jquery.js" type="text/javascript"></script>
<script src="../jlib/forms/jtip.js" type="text/javascript"></script>
<script src="../jlib/forms/jvalidity.js" type="text/javascript"></script>
<script src="../jlib/text/jtext.js" type="text/javascript"></script>
<script LANGUAGE="JavaScript">
var flg = "${flg!''}";
if(flg == "true"){
	alert("保存成功");
	window.parent.closediv();
}else{
	if(flg!=''){
		alert(flg);
	}
}
$(function(){
	var validations = [
			{id:"zbdm", rules:[
			{rule: "required", msg:"指标代码不能为空"}
			]},{id:"sbtddm", rules:[
			{rule: "required", msg:"数据通道不能为空"}
			]},{id:"sbtddm", rules:[
			{rule: "number", msg:"数据通道只能是数字类型"}
			]},{id:"sbtddm", rules:[
			{rule: "number", msg:"数据精度只能是数字类型"}
			]}
			];
	$("#save").validator(validations, {}, jtip());
});
</script>
</head>
<body>
<table width="100%" border="0" cellspacing="0" cellpadding="0" id="pop">
	<tr>
		<td width="36" height="18" valign="top" class="popTitle"><img
			src="../images/tips_1.png" width="36" height="25" /></td>
		<td width="727" class="popTitle">监控指标</td>
		<td width="35" align="left" valign="top" class="popTitle"></td>
	</tr>
	<tr>
		<td colspan="3" align="center" valign="top">
		<form action="<#if sbzb??>update.htm<#else>add.htm</#if>" method="post">
		<input type="hidden" name="sbid" value="<#if sbzb??>${sbzb.sbid}<#else>${sbid}</#if>">
		<table width="96%" cellpadding="0" cellspacing="0" class="table spaceTop">
			
			<tr>
				<td width="14%" align="center" class="detailRow">数据通道</td>
				<td width="36%" class="row rowLeft"><input type="text"
					name="sbtddm" id="sbtddm" class="input" value="${(sbzb.sbtddm)!''}" <#if sbzb??>readonly</#if> /></td>
				<td width="14%" align="center" class="detailRow">指标代码</td>
				<td width="36%" class="row rowLeft"><input type="text"
					name="zbdm" id="zbdm" class="input" value="${(sbzb.zbdm)!''}" /></td>
			</tr>
			<tr>
				<td width="14%" align="center" class="detailRow">指标名称</td>
				<td width="36%" class="row rowLeft"><input type="text"
					name="zbmc" id="zbmc" class="input" value="${(sbzb.zbmc)!''}"/></td>
				<td width="14%" align="center" class="detailRow">数据精度</td>
				<td width="36%" class="row rowLeft"><input type="text"
					name="sjjd" id="sjjd" class="input" value="${(sbzb.sjjd)!''}" /></td>
			</tr>
			<tr>
				<td width="14%" align="center" class="detailRow">数据单位</td>
				<td width="36%" class="row rowLeft"><input type="text"
					name="sjdw" id="sjdw" class="input" value="${(sbzb.sjdw)!''}" /></td>
				<td width="14%" align="center" class="detailRow">自定义名称</td>
				<td width="36%" class="row rowLeft"><input type="text"
					name="zdyzbmc" id="zdyzbmc" class="input" value="${(sbzb.zdyzbmc)!''}" /></td>
			</tr>
		</table>
		<div class="btnDiv"><input name="button" type="button" id="save" class="btn" value="提交"/>
		
		</div>
		</td>
		</form>
	</tr>
</table>
</body>
</html>
